home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / ODF Release 3 / ODFDev / ODF / OS / FWGraphx / FWGConst.h < prev    next >
Encoding:
Text File  |  1996-12-16  |  3.2 KB  |  112 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWGConst.h
  4. //    Release Version:    $ ODF 3 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWGCONST_H
  11. #define FWGCONST_H
  12.  
  13. // ----- OpenDoc Includes -----
  14.  
  15. #ifndef FWODTYPS_H
  16. #include "FWODTyps.h"
  17. #endif
  18.  
  19. // ----- Macintosh Includes -----
  20.  
  21. #if defined(FW_BUILD_MAC) && !defined(__QUICKDRAW__)
  22. #include <QuickDraw.h>
  23. #endif
  24.  
  25. // ----- Windows Includes -----
  26.  
  27. #if defined(FW_BUILD_WIN) && !defined(_INC_WINDOWS)
  28. #include <windows.h>
  29. #endif
  30.  
  31. #if defined(FW_BUILD_WIN)
  32. #include <WinPCanv.xh>
  33. #endif
  34.  
  35. // ----- ODF Includes -----
  36.  
  37. #ifndef FWPAT_H
  38. #include "FWPat.h"
  39. #endif
  40.  
  41. #ifndef SLGCONST_K
  42. #include "SLGConst.k"
  43. #endif
  44.  
  45. //========================================================================================
  46. //    Forward Declarations
  47. //========================================================================================
  48.  
  49. class    FW_CColor;
  50. class    FW_CString;
  51. class    FW_CPoint;
  52. class    FW_CRect;
  53.  
  54. //========================================================================================
  55. //    Graphic System
  56. //========================================================================================
  57.  
  58. #ifdef FW_BUILD_MAC
  59. const ODGraphicsSystem FW_kGraphicSystem = kODQuickDraw;
  60. #endif
  61.  
  62. #ifdef FW_BUILD_WIN
  63. // [jkp] your choice of kODWin32, kODWin95 or kODWinNT in <stddefs.xh>
  64. const ODGraphicsSystem FW_kGraphicSystem = kODWin32;
  65. #endif
  66.  
  67. //========================================================================================
  68. //    Globals
  69. //========================================================================================
  70.  
  71. // ----- Standard colors -----
  72. extern const FW_SColor            FW_kRGBBlack;
  73. extern const FW_SColor            FW_kRGBWhite;
  74. extern const FW_SColor            FW_kRGBRed;
  75. extern const FW_SColor            FW_kRGBYellow;
  76. extern const FW_SColor            FW_kRGBBlue;
  77. extern const FW_SColor            FW_kRGBGreen;
  78. extern const FW_SColor            FW_kRGBBrown;
  79. extern const FW_SColor            FW_kRGBPurple;
  80. extern const FW_SColor            FW_kRGBLightBlue;
  81. extern const FW_SColor            FW_kRGBGray;
  82. extern const FW_SColor            FW_kRGBLightGray;
  83. extern const FW_SColor            FW_kRGBDarkGray;
  84.  
  85. // ----- Standard Patterns -----
  86. extern const FW_BitPattern        FW_kBlackPat;
  87. extern const FW_BitPattern        FW_kWhitePat;
  88. extern const FW_BitPattern        FW_kGrayPat;
  89. extern const FW_BitPattern        FW_kLightGrayPat;
  90. extern const FW_BitPattern        FW_kDarkGrayPat;
  91. extern const FW_BitPattern        FW_kHorizontalPat;
  92. extern const FW_BitPattern        FW_kVerticalPat;
  93. extern const FW_BitPattern        FW_kFDiagonalPat;
  94. extern const FW_BitPattern        FW_kBDiagonalPat;
  95. extern const FW_BitPattern        FW_kCrossPat;
  96. extern const FW_BitPattern        FW_kDiagCrossPat;
  97. extern const FW_BitPattern        FW_kAntPat;
  98.  
  99. // ------ Standard font names -----
  100. const FW_CString&             FW_GetSystemFontName();
  101. const FW_CString&             FW_GetDefaultFontName();
  102. const FW_CString&             FW_GetHelveticaFontName();
  103. const FW_CString&             FW_GetTimesFontName();
  104. const FW_CString&             FW_GetCourierFontName();
  105. const FW_CString&             FW_GetPalatinoFontName();
  106.  
  107. #ifdef FW_BUILD_MAC
  108. extern const FW_CString    FW_MacGetFontName(short macFontID);
  109. #endif
  110.  
  111. #endif
  112.